public class ISN_Result
{
	public ISN_Error error;

	protected bool _IsSucceeded = true;

	public bool IsSucceeded
	{
		get
		{
			return _IsSucceeded;
		}
	}

	public bool IsFailed
	{
		get
		{
			return !_IsSucceeded;
		}
	}

	public ISN_Result(bool IsResultSucceeded)
	{
		_IsSucceeded = IsResultSucceeded;
	}

	public void SetError(ISN_Error e)
	{
		error = e;
		_IsSucceeded = false;
	}

	public void SetErrorData(string errorData)
	{
		ISN_Error iSN_Error = new ISN_Error(errorData);
		SetError(iSN_Error);
	}
}
